package com.boot.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.boot.entity.Item;
import com.boot.entity.Stats;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单详情表(Item)表数据库访问层
 *
 * @author makejava
 * @since 2023-07-20 18:48:25
 */
@Repository
public interface ItemDao extends BaseMapper<Item> {


    /**
     * 查询item和product表统计销量前十
     * @return
     */
    List<Stats> selectItemAndProductSales();
}

